﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BaseData.HelperEzui
{
    public class EzuiTreeViewBase<T>
    {
        public EzuiTreeViewBase()
        {
            this.text = null;
            this.state = null;
            this.attributes = new Attributes { key = 0, keys = string.Empty, value = 0, values = string.Empty, };
        }
        public string text { get; set; }
        public string state { get; set; }
        public Attributes attributes { get; set; }
    }
    public class EzuiTreeViews<T> : EzuiTreeViewBase<T>
    {
        public EzuiTreeViews()
        {
            this.id = string.Empty;
            this.parentid = string.Empty;
            this.rows = new List<EzuiTreeViews<T>>();
            this.children = new List<EzuiTreeViews<T>>();
        }
        public string id { get; set; }
        public string parentid { get; set; }
        public List<EzuiTreeViews<T>> rows { get; set; }
        public List<EzuiTreeViews<T>> children { get; set; }
    }
    public class EzuiTreeView<T> : EzuiTreeViewBase<T>
    {
        public EzuiTreeView()
        {
            this.id = 0;
            this.parentid = 0;
            this.rows = new List<EzuiTreeView<T>>();
            this.children = new List<EzuiTreeView<T>>();
        }
        public int id { get; set; }
        public int parentid { get; set; }
        public List<EzuiTreeView<T>> rows { get; set; }
        public List<EzuiTreeView<T>> children { get; set; }
    }
}
